package com.atguigu.day01;

import java.util.concurrent.TimeUnit;

/**
 * @author sx
 * @date 2022-02-17 21:43
 */
public class Demo4 {
    public static void main(String[] args) throws InterruptedException {
        //获取cpu核数
        System.out.println(Runtime.getRuntime().availableProcessors());
        new Thread().start();
//        Thread.State
        TimeUnit.SECONDS.sleep(2);
        TimeUnit.DAYS.sleep(1);

    }
}
